package TEST;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import Server.Server;

public class TestClient {
	public Socket socket;
	public ObjectInputStream in;
//	public ObjectOutputStream out;
	public PrintWriter netOut;

	public TestClient() throws IOException {
		socket = new Socket("localhost", Server.DEFAULT_SERVER_PORT);
		
		netOut = new PrintWriter(new BufferedWriter(new OutputStreamWriter(
				socket.getOutputStream())), true);
		
		in = new ObjectInputStream(socket.getInputStream());
//		out = new ObjectOutputStream(socket.getOutputStream());
	}

	public void close() throws IOException {
		socket.close();
	}
}